namespace ExtensionToolsLibraries.PublicClasses.OutputModels;
/// <summary>
/// 输出模型
/// </summary>
/// <typeparam name="T">类型</typeparam>
public class OutputModel<T>
{
    public OutputModel(bool status, int errorType, string message, T data)
    {
        this.Status = status;
        this.ErrorType = errorType;
        this.Message = message;
        this.Data = data;
    }
    /// <summary>
    /// 操作是否成功
    /// </summary>
    public bool Status { get; set; }
    /// <summary>
    /// 是否显示提示（1：显示，其余：不显示）
    /// </summary>
    public int ErrorType { get; set; }
    /// <summary>
    /// 提示信息
    /// </summary>
    public string Message { get; set; }
    /// <summary>
    /// 返回数据
    /// </summary>
    public T Data { get; set; }
}